﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Reflection;

namespace furion.blog.Domain.Shared.Attribute
{
    //这里利用AttributeUsage 来设置我们的自定义属性的应用范围,这里定义的可以用于类，结构和方法的声明
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method, AllowMultiple = true)] // multiuse attribute
    public class ActionAttribute : System.Attribute
    {
        public string Name { get; set; }
        public string Desc { get; set; }
        public string[] Permissions { get; set; }
    }
}
